//
//  SSFirstPageDiscountCell.m
//  Travel_World
//
//  Created by dlios on 15/10/13.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "SSFirstPageDiscountCell.h"

@implementation SSFirstPageDiscountCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.discountImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height - 50)];
        [self.contentView addSubview:self.discountImageView];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height - 50, self.contentView.frame.size.width, 30)];
        self.titleLabel.font = [UIFont systemFontOfSize:16];
        [self.contentView addSubview:self.titleLabel];
        
        self.priceOffLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height - 20, self.contentView.frame.size.width / 2, 20)];
        self.priceOffLabel.textAlignment = NSTextAlignmentLeft;
        self.priceOffLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.priceOffLabel];
        
        self.priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width / 2, self.contentView.frame.size.height - 20, self.contentView.frame.size.width / 2, 20)];
        self.priceLabel.textAlignment = NSTextAlignmentRight;
        self.priceLabel.textColor = [UIColor redColor];
        self.priceLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.priceLabel];
    }
    
    return self;
}

@end
